﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:controls="clr-namespace:Black.SurfaceToolkit.Controls">

    <Style TargetType="{x:Type controls:CanvasScatterView}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type controls:CanvasScatterView}">
                    <Canvas x:Name="PART_canMain" 
                            Width="{TemplateBinding Width}" 
                            Height="{TemplateBinding Height}"
                            Background="{TemplateBinding Background}"
                            SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        
                        <!-- Canvas de gestion des CanvasScatterViewItems -->
                        
                        <Canvas x:Name="PART_canItems" 
                                IsItemsHost="True"
                                Width="{TemplateBinding Width}" 
                                Height="{TemplateBinding Height}"
                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                        </Canvas>
                        
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>